package com.demo.config;

import javax.annotation.Resource;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.type.JdbcType;

import com.mapperdb.db.AnntConfig;

@Resource(name = "blog")
public interface BlogConfig extends AnntConfig {
	@Override
	@Results({ @Result(id = true, column = "id", property = "id", jdbcType = JdbcType.INTEGER)//
			, @Result(id = false, column = "title", property = "title", jdbcType = JdbcType.VARCHAR)//
			, @Result(id = false, column = "publishTime", property = "publishtime", jdbcType = JdbcType.TIMESTAMP)//
			, @Result(id = false, column = "content", property = "content", jdbcType = JdbcType.LONGVARCHAR) //
	})
	void config();
}
